package com.wan.swaggerdemo.pojo;


import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(name = "User实体类")
public class User implements Serializable {

    @Schema(description = "用户名", required = true, example = "kelvin")
    @Parameter(description = "用户名", required = true, example = "kelvin")
    private String name;

    @Schema(description = "密码", example = "123456")
    @Parameter(description = "密码", example = "123456")
    private String password;

}
